package com.wxl.common.room.dao

import androidx.room.*
import com.wxl.common.room.entity.QuestionItemEntity

@Dao
interface QusetionItemDao {

    @Delete
    fun deleteUserQuestionItemEntity(vararg item: QuestionItemEntity)

    @Update
    fun updateQuestionItemEntity(vararg item: QuestionItemEntity)

    @Query("select * from ask_item")
    fun queryQuestionItemEntity() : List<QuestionItemEntity>

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertQuestionItemEntity(vararg item: QuestionItemEntity)
}